package com.c2soft.nepalcmx.services;



import java.text.ParseException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.c2soft.nepalcmx.command.ConfirmTradeCommand;
import com.c2soft.nepalcmx.command.NetPositionCommand;
import com.c2soft.nepalcmx.command.TradeBookCommand;
import com.c2soft.nepalcmx.command.TradeBookCommand;

import com.c2soft.nepalcmx.dao.NetPositionDAO;
import com.c2soft.nepalcmx.dao.TradeBookDAO;



@Service
public class NetPositionService {

	@Autowired
	private NetPositionDAO netPositionDAO;
	

	public List<NetPositionCommand> getNetPosition(String userId,String ptype) {
		
		return netPositionDAO.findAllNetPosition(userId,ptype);
	}
public List<NetPositionCommand> getNetPositions(String userId) {
		
		return netPositionDAO.findAllNetPositions(userId);
	}
	

public List<NetPositionCommand> getNetPosition1(String brokeId,String ptype) {
	
	return netPositionDAO.findAllNetPosition1(brokeId,ptype);
}
public List<NetPositionCommand> getNetPositions1(String brokeId) {
	
	return netPositionDAO.findAllNetPositions1(brokeId);
}


public List<NetPositionCommand> getNetPosition2(String ptype) {
	
	return netPositionDAO.findAllNetPosition2(ptype);
}
public List<NetPositionCommand> getNetPositions2() {
	
	return netPositionDAO.findAllNetPositions2();
}




}
